﻿using DotNetty.Transport.Channels;
using System;

namespace CCManger.Server
{
    internal class DiscardServerHandler : SimpleChannelInboundHandler<object>
    {
        public DiscardServerHandler()
        {
        }

        protected override void ChannelRead0(IChannelHandlerContext ctx, object msg)
        {
            Console.WriteLine("{0}", msg.ToString());
            ctx.CloseAsync();
        }
    }
}